package zm.irc.ioc.pojo;

public class WrapBeanObj {

   
    /**
     * bean object
     */
   private Object beanOjb;

   /**
    * The class of bean;
    */
   private WrapClass wrapClass;

   public WrapBeanObj(WrapClass wrapClass, Object beanObj){
        this.beanOjb = beanObj;
        this.wrapClass = wrapClass;
   }
   public void setBeanObject(Object beanObj){
    this.beanOjb = beanObj;
   }

   public Object getBeanObj(){
       return this.beanOjb;
   }

   public WrapClass getWrapClass(){
       return this.wrapClass;
   }

   public boolean isSinglet(){
       return this.wrapClass.isSinglet();
   }
}
